import OpenGL
import OpenGL.GL
import OpenGL.GLU
import OpenGL.GLUT
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *


looping=True

def kbd(a,b,c):
    global looping
    if a=='q':
        looping=False

def mouse(x,y):
    pass

def display():
    glClearColor(.4,.5,.6,1.0)
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
    glutSwapBuffers()

def main():
    glutInit()
    glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA|GLUT_DEPTH)
    glutCreateWindow('qwe')
    glutDisplayFunc(display)
    glutKeyboardFunc(kbd)
    glutPassiveMotionFunc(mouse)
    while(looping):
        glutMainLoopEvent()
    pass


main()
